﻿@model IEnumerable<Hotel.Web.Models.Service>

@{
    ViewBag.Title = Hotel.Web.Views.AdministratorService.Resource.Index;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Hotel.Web.Views.AdministratorService.Resource.Index</h2>

<p>
    @Html.ActionLink(Hotel.Web.Views.AdministratorService.Resource.CreateNewService, "Create")
</p>
<table>
    <tr>
        <th>
            @Hotel.Web.Views.AdministratorService.Resource.Name
        </th>
        <th>
            @Hotel.Web.Views.AdministratorService.Resource.Cost
        </th>
        <th>
            @Hotel.Web.Views.AdministratorService.Resource.Rated
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Price)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
        <td>
            @Html.ActionLink(Hotel.Web.Views.AdministratorService.Resource.Edit, "Edit", new { id=item.ID }) |
            @Html.ActionLink(Hotel.Web.Views.AdministratorService.Resource.Details, "Details", new { id=item.ID }) |
            @Html.ActionLink(Hotel.Web.Views.AdministratorService.Resource.Delete, "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
